# $Id: PKGBUILD 85895 2013-03-08 16:33:31Z lcarlier $
# Maintainer: Laurent Carlier <lordheavym@gmail.com>
# Contributor: Jaroslaw Swierczynski <swiergot@aur.archlinux.org>
# Contributor: Roman Kyrylych <Roman.Kyrylych@gmail.com>
# Contributor: Christoph Siegenthaler <csi@gmx.ch>
# Contributor: Jesse Young <jesse@eon.jlyo.org>

pkgname=sauerbraten-data
pkgver=2013_02_03_collect_edition
pkgrel=1
pkgdesc="Improved version of the Cube engine - datas files"
arch=('any')
url="http://www.sauerbraten.org/"
license=('ZLIB')
makedepends=('sdl_mixer' 'sdl_image' 'glu' 'mesa-libgl')
source=(http://downloads.sourceforge.net/sauerbraten/sauerbraten_${pkgver}_linux.tar.bz2
	license.txt)
md5sums=('2cfbd619981402898f97b93be08d58ac'
         'cf46cd0148f03b7477f7c54aec865abe')

build() {
  cd ${srcdir}/sauerbraten/src

  make
}

package() {
  cd ${srcdir}/sauerbraten

  install -d ${pkgdir}/opt/sauerbraten
  cp -r data ${pkgdir}/opt/sauerbraten
  cp -r packages ${pkgdir}/opt/sauerbraten

  # make namcap happy
  #chmod -R go+rx ${pkgdir}/opt/sauerbraten/packages/argh

  install -Dm644 ${srcdir}/license.txt ${pkgdir}/usr/share/licenses/${pkgname}/license.txt
}
